#region "CultureExpando"

/*
 * ####     Developer Name : Wang Yucai
 * 
 * ####     Development Tool : Microsoft VisualStudio 2010 Ultimate Edition
 * 
 * ####     Create Time : 2014/7/8 10:03:32
 * 
 * ####     Namespace : Masterduner.SourceStudio.Practices.DevelopmentLibrary.Globalization
 * 
 * ####     Type Name : CultureExpando
 * 
 * ####     Full Name : Masterduner.SourceStudio.Practices.DevelopmentLibrary.Globalization.CultureExpando
 * 
 * ####     Machine Name : GLCHQWYCWINW7
 * 
 * ####     UserName : GUOCOLAND/wangyucai
 * 
 * ####     CLR Version : 4.0.30319.18408
 * 
 * ####     Target Framework Version : 4.0
 */

#endregion

using System;
using System.Globalization;

namespace Masterduner.SourceStudio.Practices.DevelopmentLibrary.Globalization
{
    /// <summary>
    /// <para>Masterduner.SourceStudio.Practices.DevelopmentLibrary.Globalization.CultureExpando</para>
    /// <para>
    /// 为<see cref="CultureInfo"/>提供的辅助性方法。
    /// </para>
    /// </summary>
    /// <remarks>
    /// <para>Target Framework Version : 4.0</para>
    /// </remarks>
    public static class CultureExpando
    {
        #region CreateSpecialCulture
        /// <summary>
        /// 创建名称为<paramref name="name"/>的<see cref="CultureInfo"/>对象实例。
        /// </summary>
        /// <param name="name">文化区域名称。</param>
        /// <returns><see cref="CultureInfo"/>对象实例。</returns>
        static public CultureInfo CreateSpecialCulture(string name = "zh-CN")
        {
            return CultureInfo.CreateSpecificCulture(name);
        }

        /// <summary>
        /// 创建文化区域标识为<paramref name="lcid"/>的<see cref="CultureInfo"/>对象实例
        /// </summary>
        /// <param name="lcid"><see cref="LocaleID"/>中的一个值。</param>
        /// <returns><see cref="CultureInfo"/>对象实例。</returns>
        static public CultureInfo CreateSpecialCulture(LocaleID lcid = LocaleID.ChinesePRC)
        {
            return new CultureInfo((int)lcid);
        }
        #endregion
    }
}

#region README

/*
 * ####     ©2014 Wang Yucai
 * 
 * ####     Contact me
 *                  
 *                  E-mail : Masterduner@Yeah.net
 *                  Mobile : 13621384677
 *                  QQ : 180261899
 */

#endregion